//
//  HLPickerManager.h
//  YueYue
//
//  Created by hulu001 on 2023/5/17.
//

#import <Foundation/Foundation.h>
#import <HXPhotoPicker/HXPhotoPicker.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^HLPickerBlock)(NSArray<HXPhotoModel *>*);

@interface HLPickerManager : NSObject

- (instancetype)initWithType:(HXPhotoManagerSelectedType)type avatar:(BOOL)isAvatar;

- (void)updateMaxNum:(NSInteger)maxNum photos:(nullable NSArray<HXPhotoModel *> *)photos;

- (void)showWithController:(UIViewController *)controller block:(HLPickerBlock)block;

+ (void)previewWithManager:(HXPhotoManager *)manager
                     index:(NSInteger)index
                controller:(UIViewController *)viewController;

@end

NS_ASSUME_NONNULL_END
